<?php

    class WZ_Registry
    {
        static $_instance;
		
		// singleton
		public static function &getInstance() 
		{
            if (!self::$_instance instanceof self) {
				self::$_instance = new self();
			}
            return self::$_instance;
		}
        
        public static function set($key, $value)
        {
            \Zend_Registry::set($key, $value);
        }
        
        public static function get($key)
        {
            if (\Zend_Registry::isRegistered($key)) {
                return \Zend_Registry::get($key);
            }
            return null;
        }
    }